package com.test.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:fangn
 * @Date:2019/11/6
 **/
@RestController
public class FeignHelloController {

    @Autowired
    private FeignHelloService feignHelloService;

    @RequestMapping("/hi")
    public String sayHi(@RequestParam(value = "name") String name) {
        return feignHelloService.sayHi(name);
    }
}
